package notepad;

import java.awt.Color;
import java.awt.Font;
import java.awt.event.*;
public class FontColor implements ActionListener{

	public void actionPerformed(ActionEvent e) {
		if(e.getSource()== ShowGUI.fontColor1 ){
			ShowGUI.text.setForeground(Color.BLACK);
		}
		if(e.getSource()== ShowGUI.fontColor2 ){
			ShowGUI.text.setForeground(Color.RED);
		}
		if(e.getSource()== ShowGUI.fontColor3 ){
			ShowGUI.text.setForeground(Color.GRAY);
		}
		if(e.getSource()== ShowGUI.fontColor4 ){
			ShowGUI.text.setForeground(Color.BLUE);
		}
	}
	
}